added API methods for jobs