set hosts from custom script