even better plex token retrieval. No longer need hacky document insertion code