refactoring to start add_key command