change pipe order for cli