tref: use g->m