added display of errors