added further instrumentation for debugging cpp files