changes to read files from s3