regenerate keys.