add enable tracing method