update the trace script