flow for realtime