modified revert to process multiple VMs separated by commas