added hostsfile update function