refactored config and keybindings