modify how keys are stored