removed nested logging