add getHeader method