using external pretty printer for case classes