add long-polling support to v3