took cursorMode out of globals in wiremodel