modified VMManager.py