changed way prettifier is used, ref michal hoftich