removed memoize from directory creation