fixed stdin reservoir