add support for optional resource_arg to resource initializers and base state
add invitation support to utility functions