added atomic claiming of jobs