some small changes to avoid uploading read with error documents (save disk space)