add support to configure pretty print output