add debugger
fix bug: not all categorized has mirrors