generate_scripts now accepts cmdline args