introduced flag for motion/direction based connectivity