basic stream cleaning