added more tracing.