adding STDIN support #79