use flow instead of stream object mode