okay, I really fixed the logging bug this time