change the get_gateway and get_integration

change the gateway and integration find the gateway and integration
find the modules.