support equal priorities for ballots, fix up some of the imports and operators