start adding support for xml output