job sync refactor