added conversion to stream
fixed backlog