allow page size to be passed in header