added automatic link header handling