updated for plex token retrieval