logger now logs correctly