modified cvmake