better connection test