added bridge check