raft: set none to be 0

fixes #1000 
use stateMachine instead?