working copy of src/utils/vcenter.py