geofence: make some functions private, correctly update params