bridge.sh: support all functions