better handling of cursor links