made changes to always call updateendpoints method