pretty printing works now for directives