first try at using the new renderer API
clean the CMake
handle more of the training phase