a little bit more work on the mesh class