fix stream endpoint. #4