script for implementing bonding