use sock instead of netcat