add graph stuff