hooked into vm creation