__vm_space_switch added to loader code