erroring on write