add helper for rolling back "done" batches