change the way endpoint is resolved