updated termid, needs to be ported