some improvements to logging actions.