wip - building realtime logic