added batch onDone event