compatiblity with new plone.batching