better graph loading