adds basic graph/tree stuff