cdata: use g->m