add some basic profiling