stdin now working