fixed adding directories