added tracer code