added basic geofencing functionality