now checks connection