merged classes Session and HostState to HostState