adding profiling ability to extension