first swing at state transitions