make the code work for bridge interfaces