debug + beautify