logger now logs to the correct directory