modify keymapps, make it more robust