hopefully this is quite robust against all kinds of qualities of connectivity