be more robust against parse errors