add pretty format output support