change resource_url to resource_uri