fixed routing and graph refreshing/indexing