replace all deprecated endpoints with the new ones