adding graph endpoint