addjob now is error-aware