stdout prettyfication for optimization