first working functions
getBridgeNames function