API call nesting fix, get_graph