replace auto main with custom endpoint normalization