added functionality for multiple bridges. Untested
support for multiple bridges