default host refactored