geoip plugin minor refactoring