add support for xml output