Improved proxmox api handling