extracted Raft interface from context