add dir for endorsed recursively