working with directories fix