updates root path