finished sendCommand and sendBinary