add some mesh handling code