don't coerce result of instrumentation to a string too early
removed unused variable
resetTrace()