a bunch of DAG changes
Merge pull request #745 from tonyrd/development

a bunch of DAG changes