refactor jobconfig apis