changed from json to xml