backtrack, add some logging