switch cout and cerr