rm directories and add directories