pipes cleanup