add TRACE_OUT marco to control the output trace