small changes to logging