refactor to fetch from geoip.segment.io