add line number to errors