infrastructure for reading data from S3