code review. refactored open_doc
More OrphanImporter refactoring