detect/report parse errors