saving the key
key registration finally works.