Building a better referendum