updates for BUILD and pirates