compile with -feature and -deprecation warnings on
first draft of replicated state machine interface and example