remove profiler code from dispatcher