added treegraph endpoint