fix publishaddrs calling