error handling should be only in read-only mode;