nested path refactoring