added a session manager