better reporting of exceptions