better file handling
fallback to _ingest_file on connection error, during ds upload