finish the libvirt api call part