add apply option to realtime_collect, RT#5071