get-vm-ip improvement