request handler and session manager first implementation