added profiling to the log