script to submit jobs to batch