adddd traces to find "end" bug