added profiler stuff