hug-internal-header-logic