resolve endpoint