extra parser stuff to deal with error messages