small change to parser to be more resilient