managing directory