handling of different S3 regions depending on bucket