mirroring upstream patch for preview
header syntax