added more dubugging information to parser