new backtracking and performance plotting