add command and store status as json