added argument to check_job_fail - mitch