went back to plex global functions

error in using plex globals