VM must be declared globally