script to generate submit files