updating templates for S3