added addjob functionality