added support for batchDelete and long polling