add support for xml model in high level interface, update API to match client