refactor! remove dag logic