set up data endpoint