added some code to the JobSubmissionAPI