adds endpoints