updated the header size to be configurable