add destroy method to flat stream