MBH: not knowing upfront how big the header and footer is, you'll have to call filetrimmer as a last step