fixed plaintext printing so that streams are printed