conexion checking
checking connectivity