addjob source code