fixed issue with session mgmt