better error reporting from c3