updates endpoint location