temp solution for TCP connection