retrieving gateway info.