update session and more