fix root path usage