add header and preamble tag support