first version where I've linked harvesting and ingestion code (very superficially tested so far)