read without stdin hack