better logging of sessions