added instrumentation code to processor module