new plan much more cmake
much improved over previous plans