#45: implemented new input stream