on error, highllight cursor position as error
print statistics sorted