support pretty format.