fixed getCursorLocation and hasModifier, added many Ent hooks