updated session management