update pretty print save to file