created helper for managing the tokens saved in preferences