better job state management