changing endpoint for token