adding session handler to fix session error problemo