changed api endpoints