add old leader election code
add protobuf defn