added optional text extraction on ingest