made changes to check_job_fail, defined create_pausejob_flag function - mitch