missing half of the patch for --pretty output