switching main to mplayer class