some changes to session