add s3 function. add secret keys