update session handling