cleaned up getting cursorOffset