add several functions to eval.py