helpers: trace_write class added