adding main endpoints