import code base from raftconsensus.github.io