adding endpoints for api