pipe to client oncoding