add new directories, remove obsolete ones