support for mouse/keyboard hooks