adding parsing mechanism