minor improvements to logging