some fix of profiling, perf is added