tunining connection checking.