fix save settings bug and pass keypairs and not request to keypair return functions