added getNextJob to work_handler