improved management of ply file