re-added the trace functionality.