directory nesting fix