replacing private_ip with getvar