small refactoring of HostMeta