move printing header to root node’s getParsed()