making cache command use job model
refactoring circular import