varop_random changes, some other fixes