added support for bulk operations