extracted some virtualop setup logic so that  is usable during initialization