use correct endpoint