add bearclaw control code