updated session saving