added line numbers to errors