added recognition of different kinds of textual output processing