added replicated state machines