fix pulling from s3 bucket