fixed regexpengine, fixed some keymaps