fixed imports, text extraction