refactored logger out of dependencies