fix fog and s3