fixed bugs associated with host state