clean the s3 credential stuff