added fetchExtractedText method