better error reporting.