simpified getHeaderNames method