improving tracelib