added parse_resource_id