loop that bags and validates folders