improve the plans and generate the files