a fix for the geofence and also update location and doe some other stuffs