modified UrlCategorize_run to add "outputpath"