rename connection checking function