add util for pretty print response