address code review
reuse tmp file for geoip db