implemented s3 region support