add server receive data from client and write to pipe