add job locking