refactor tcp connect