small adjustments to logging