changed logging and tracing