working first version with geolocation enabled