preparing directories