changed pipe handling