non-DAG almost working