better logging of mode change