changes supportedStates to Set, and changed logger