raft: get rid of allocation