more r ingest code.