fixed the processCommand function for v1.1 of the API, default return
format has changed (?)