recover stdout