support writing empty files to s3