use pretty print for saving routing information