add real functions for instrumentation.