add timeout to evaluate function