adding ply parser code