fixes for lib.createJob