add debug tracing messages to TM