add lightweight instrumentation