add video mode support