cleaning up log output