implement code to apply/restore hosts
finish