reconfigured run script to run jobs in background