send err to callback
just reassign id array on err, don't iterate