raft: add index to entry