switch from tcp to linux socket