make detailed tracing optional