added reseting of jobs