refactored plex player