fixed s3 compatibility and available name logic