Rs/secret key fix