kill some defunct code
Improve error reporting parsing indexes.