added missing keywords
downref embedded streams when they are consumed