bit of a refactor of logger