set stream to true for logs