header now avaible to lexer; changed to use header for endtag and nested macros