matlab batcher fixes