better error reporting, for now