trying to simplify session management