first draft of trace.html