document factory header