use proper endpoint