make Stream.extend more sane