fixed debug tools