much more of the mesh creation/init logic