hack to allow parsing to continue even in a bad state