made default host null
refactored