2 new util funcs for external ip stubbing