dont use the pipe for cleaning because it can consume loads of memory