adding reference to session_end for later call