adding api call to regenerate keys