added getCurrentState