refactoring still, put all plex stuff in Plex class