use __iter__ for ports in multipipe