merge with luzia's meshtools