refactor endpoint defaults