not sending commands correctly in Controller.sendCommand