use json for commands as well