use correct class for get_vms and get_templates