compat_resource