specify gateway using resource name, enable registry events in pilot