finish server side code, add geoipToLocation