started working on previewing a subgraph : needs fix and heavy refactor