cleaned up profiling hooks in runtime