allow overwriting a document