return xml instead of json to preserve order for tagging