this approach can be good, but I don't understand it :) what is the pourpose of flashing stdin?