added pseudo streaming.
modified