bugfix: init tcp handle before dns looking up