added debug to parser