update the key-gen file