further chained-batch integration, added clear()