complete refactoring of raw text output to tags$... methods