updated API endpoints