refactoring job running