added tcp connection checking check