logging perf clean up