publish script was incorrectly pulling ip address for multiple published services