fix hm_em to use mesh output