Completed dataset switching
corrected parser to handle case where IP not in geoip database