scripted bbuf operations