extended ingestion script to download data from S3