added some profiler calls