renamed and generalized bonded interface script for rocks