revise doc extractor