merging plex code into serfer