also return xid in nextid