partially implemented VM translation, started sys_getmainvars