add buggy auto-batch implementation