created pseudo-state machines for Eventsourced and PersistentView