redirection and C++ streams added