[debug tool] prettify output