brick protocol for Scripts and Bricks