tweaks to logging