solve the root_path problem