dowrite errors