replaced peg parser with a simple one