improved cursor

last issue is with line breaks