started refactoring the DirectionManager