added global profiling