send namespace param in resource_register call