fixme
end of stream of encoder