upgrade and cleaning of video_main