added era, gosub for virtual machine