minor edits
fixed bugs with support for multiple bridges. Working copy
minor edits