added stdout handler