minor changes to logging