refactored root path