loads the graph at startup automatically