UF-70: adapted to recent changes on startBatch/endBatch API