throw errors instead of updating the index
read-only test adjustment
handle ArrayBuffers appropriately
set file stats size