a copy of https://github.com/cocagne/paxos