1) code refactoring
2) created statestore for auth tokens and cache