added layering capabilities to graph, so close to feature complete i can taste it