now catches also c++ stdout