added protection for bridges