tweaked logging