adding logging statements to session