rearranged s3 credentials