changed xml to json in commands