read in S3 expected format