added has() to hostsfile