fix some TODOs related to AppendEntries