moved Graph() to be an object variable and added the proxies as well