update how keys are created