profiler cleanup