adopt code for changes in pve-common