fix for amazon s3 support