start of netcat client code