debug switch to Eigen