simplified DAGBuilder
small changes to DAGBuilder