dominion state management and api