update directories