added api_root attribute