set header for v2 and 3 header.
set header size
remove debug logs.