adding some basic profiling