switched to stateProvider