dynamic typing in C++, is a bitch, .ply reader nearly working