made root_url a global