start of high level profiler