added api_path_exists