added s3 check for publick buckets using dictionary