fix to include the resource_type