hybrid streaming logic added.