-- main init function, video system foundation