improved the protocol for allowing netcat clients