working with a set of directories does not work as estimated.