queries in bridge.js