include lastpage in export, 2.06 branch