update netcat implement for test