added ply support