prevent future operator precedence issues
Validate header sizes & add overflow checking.