handle direct pipe to dot, code factorization..