use the value of __virtualname__ instead of a string

var was introduced but not used consistently.