add pipe to common code