adding endpoint to the s3 download script.