implement realtime in update repo