hostUtils refactoring