avoid creating duplicate endpoings