rename run_document to run