clean up job submission code, cat output at end