better display of errors