cleanup
working min/max with best-path recording