Cursor: update of the hooks part