worked out nil pointer bugs and missing chdir in job execution