add `resource` sugar