added long polling, bulk processing