first attempts of state management