make scripts more flexible about input/output file names and run duration