adds connectivity check