bug fix for tokens_queue that could potentially cause a crash
now, user-initiated api calls will use the tokens queu