better output in hosts script