resolve root path