if fails to write to /etc/hosts script will fail