add api paths instead of dir loop