dynamic checking for loading vtk