[4.2] new ingest

its port from 4.0.3 to 4.1.