updated ingest to take in some args and opts