fix protocol for "connect" command