work in progress writing to s3