hosts script improved