refactor private path when none exists