modify searchPlan, trace function, Run function