started on .ply code, half-way there...