save and restore geoloc