script for running the job