handling folder exceptions