allow main file as command line parameter in generating the plan