output of hosts script improved