started session management (badly)