updated api endpoints