remove dup code & update Hosts.Save()