we should probably process headers and footers as well...