using temp dir for text extraction