change scripts for jacobi, but will make search more general