eval_pval bug fix, and import functions