use tcp socket for wrapper