replace PIPECMD with COND; ma345 is working