reinstated parser with recovery to handle entities