support stdin