rename thread -> pipe