fix gateway matching bug add some contrllor afer gateway