added some profiling tools