getTokens bugfix, export