render from a stream