added non-npm published getTokensRemaining method