refactor some of the logger
slowly being refactored
more refactoring
kept refactoring