update auth to work across batches