rename "cmd" key to "data"