minor cleanup of KeyedPipe