new implementation of UPA gateway