better logging for session module