debug wrtree handler