tune gateway and hosts