add optional parameters to client Main
update ConnectNProtocol