better error reporting in Extraction.v