cleaning up log messages