added logging to hostfile update