user creation only if not already defined using ensure_resource

... from stdlib