refactoring host fragment