damn buffered input stream