added the trace generation facility