add better protection around header_extraction reflection