trying another connection detection method