add loopgraph stuff