more tracing via logging in generation