improve profiler template