integrate old canvas
make c++ canvas example work