add RequestVote and AppendEntries handling