support stream api