adds directives for text and graphical viewing