went back to plex global functions