changes for s3 read/write