s3 connection fix