more reorganization of vm scripts