add functions to Cursor