fix typo in geoip module code, add some debugging stuff