wip patch to add xml->cli support