S3 file handling skeleton