added catch
added test for undefined on bridge discovery