mods to virtualarray scripts