add logic to get Document header