pulled sleepyface's VM code into mc.