implemented RAIN VM selection