adding rules back to depgraph class