cleanup use of url_policy