improved get_ip_address & _get_resource_pool