only extract main if the user didn't specify anything to extract