move assignRide/unassign to server-side