fix filed, xseg tool to use the new xseg api